//
//  SRAccountDataSource.h
//  SportRing
//
//  Created by mykoma on 14/10/26.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import "LGBaseDataSource.h"

@interface SRAccountNetSource : LGBaseDataSource

//登录
+ (void)loginWithUserName:(NSString *)userName
                  userPwd:(NSString *)userPwd
                  success:(CompletionBlockWithDictionary)success
                  failure:(CompletionBlockWithError)failure;
//注册
+ (void)registerWithUserName:(NSString *)userName
                     userPwd:(NSString *)userPwd
                    nickName:(NSString *)nickName
                     success:(CompletionBlockWithDictionary)success
                     failure:(CompletionBlockWithError)failure;

//修改个人资料
+ (void)updateProfileWithToken:(NSString *)token
                      nickName:(NSString *)nickName
                      birthDay:(NSString *)birthDay
                        weight:(NSNumber *)weight
                        height:(NSNumber *)height
                        gender:(NSNumber *)gender
                       success:(CompletionBlockWithDictionary)success
                       failure:(CompletionBlockWithError)failure;

//获取个人资料
+ (void)getProfileWithToken:(NSString *)token
                    success:(CompletionBlockWithDictionary)success
                    failure:(CompletionBlockWithError)failure;

//忘记密码
+ (void)getAuthCodeWithPhoneNumber:(NSString *)phone
                           success:(CompletionBlockWithDictionary)success
                           failure:(CompletionBlockWithError)failure;

//修改密码
+ (void)modifyPasswordWithSms:(NSString *)sms
                       newPwd:(NSString *)newPwd
                  phoneNumber:(NSString *)phoneNumber
                      success:(CompletionBlockWithDictionary)success
                      failure:(CompletionBlockWithError)failure;

+ (void)modifyWithToken:(NSString *)token
            userHeadImg:(NSData *)imageData
                success:(CompletionBlockWithDictionary)success
                failure:(CompletionBlockWithError)failure;
@end
